package xiao_jin.fantastic_journey.core.init;

import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.registry.RegistryKeys;
import net.minecraft.registry.tag.TagKey;
import xiao_jin.fantastic_journey.util.ModUtil;


public final class ModTags {
    /* BLOCKS */
    public static final TagKey<Block> BLOCK_RELICTECH = blockTag("ruins");
    public static final TagKey<Block> DEEP_BLOCK_RELICTECH = blockTag("deepslate_ruins");
    public static final TagKey<Block> BLOCK_SHALLOW_ORE = blockTag("shallow_ore");

    public static final TagKey<Block> INCORRECT_FOR_EMERALD_TOOL = blockTag("incorrect_for_emerald_tool");

    /* ITEMS */
    public static final TagKey<Item> WAND = itemsTag("wand");
    public static final TagKey<Item> DAGGER = itemsTag("dagger");
    public static final TagKey<Item> LONGSWORD = itemsTag("longsword");
    public static final TagKey<Item> BROADSWORD = itemsTag("broadsword");
    public static final TagKey<Item> RAPIER = itemsTag("rapier");

    private static TagKey<Block> blockTag(String name) {
        return TagKey.of(RegistryKeys.BLOCK, ModUtil.getIdOfMod(name));
    }

    private static TagKey<Item> itemsTag(String name) {
        return TagKey.of(RegistryKeys.ITEM, ModUtil.getIdOfMod(name));
    }


}
